package org.jf.tool.fx.jftoolfx.document.bean;

import javafx.beans.property.IntegerProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;

/**
 * @author jifeng_zhang
 * @date 2025/10/16 下午7:54
 */
public class HttpCode {
    private IntegerProperty name;
    private StringProperty value;

    public HttpCode() {
        this.name = new SimpleIntegerProperty();
        this.value = new SimpleStringProperty();
    }

    public HttpCode(Integer name, String value) {
        this.name = new SimpleIntegerProperty(name);
        this.value = new SimpleStringProperty(value);
    }


    public Integer getName() {
        return name.get();
    }

    public IntegerProperty nameProperty() {
        return name;
    }

    public void setName(Integer name) {
        this.name.set(name);
    }

    public String getValue() {
        return value.get();
    }

    public StringProperty valueProperty() {
        return value;
    }

    public void setValue(String value) {
        this.value.set(value);
    }
}
